package com.futvan.z.erp.customer;

import com.futvan.z.framework.common.bean.Code;
import com.futvan.z.framework.common.bean.Result;
import com.futvan.z.framework.common.service.CommonService;
import com.futvan.z.framework.core.SuperAction;
import com.futvan.z.framework.core.z;
import com.futvan.z.framework.util.enums.ZxUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Controller
public class Crm_customerCrm_customer_save_and_return_buttonButtonAction extends SuperAction {

    @Resource
    private CustomerService customerService;

    @RequestMapping(value = "/crm_customer_save_and_return_button")
    public @ResponseBody
    Result crm_customer_save_and_return_button(@RequestParam HashMap<String, String> bean) throws Exception {
        return customerService.crm_customer_save(bean,request);
    }
}
